package com.tcm.item.domain.vo;

import com.base.core.tree.TreeEntity;

import java.io.Serializable;
import java.util.List;


public class DrugsCategoryVO implements TreeEntity<DrugsCategoryVO>, Serializable {

    private Long id;

    private String name;

    private String alias;

    private Long parentId;

    private Byte level;

    private Byte status;

    /**
     * 排序值
     */
    private Integer sortby;

    private List<DrugsCategoryVO> childList;

    private List<DrugsCategoryVO> parentList;

    private boolean leaf;

    private boolean expanded;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getAlias() {
        return alias;
    }

    public void setAlias(String alias) {
        this.alias = alias == null ? null : alias.trim();
    }

    public Long getParentId() {
        return parentId;
    }

    @Override
    public void setChildList(List<DrugsCategoryVO> childList) {
        this.childList = childList;
    }

    @Override
    public List<DrugsCategoryVO> getChildList() {
        return this.childList;
    }

    @Override
    public void setParentList(List<DrugsCategoryVO> parentList) {
        this.parentList = parentList;
    }

    @Override
    public List<DrugsCategoryVO> getParentList() {
        return this.parentList;
    }

    @Override
    public void setLeaf(boolean leaf) {
        this.leaf = leaf;
    }

    public Integer getSortby() {
        return sortby;
    }

    public void setSortby(Integer sortby) {
        this.sortby = sortby;
    }

    @Override
    public void setExpanded(boolean expanded) {
        this.expanded = expanded;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Byte getLevel() {
        return level;
    }

    public void setLevel(Byte level) {
        this.level = level;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

}